<template>
    <div class="app">
        子组件Sync: <input type="text" name="username" :value="username" @input="$emit('update:username', $event.target.value)">
    </div>
</template>

<script>
export default {
    props: ['username']
}
</script>

<style>

</style>